package top.healthylife.gateway.platform.anxinsign.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.anxinsign.api.util.AnxinSignUtils;
import top.healthylife.gateway.platform.anxinsign.dto.api1304.req.AxSignReqFourElementsOfEnterpriseBusinessDto;
import top.healthylife.gateway.platform.anxinsign.dto.api1304.res.AxSignResFourElementsOfEnterpriseBusinessDto;

/**
 * @author : GaoZeXi
 * @date 2021/3/22 9:52
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20, docUrl = "-", apiName = "企业工商四要素验证", info = "验证企业名称、工商注册号/统一社会信用代码、法人姓名、法人身份证号或护照号或港澳台来往内地通行证号码。对于个体工商户需要验证的情况，企业名称字段传空格")
public class AxSignFourElementsOfEnterpriseBusinessApi implements ParentFace<AxSignReqFourElementsOfEnterpriseBusinessDto, AxSignResFourElementsOfEnterpriseBusinessDto> {

    /**
     * 接口编码
     */
    static final String TX_CODE = "1304";

    /**
     * 接口地址
     * 1301、1302、1304、
     * 1305、1306、1307、
     * 1308、1315、1316、
     * 1317
     */
    public static final String URL = "/DSPGateway/InterfaceVII";


    @Override
    public AxSignResFourElementsOfEnterpriseBusinessDto execute(AxSignReqFourElementsOfEnterpriseBusinessDto dto) {
        return AnxinSignUtils.getApiData(URL, TX_CODE, dto, AxSignResFourElementsOfEnterpriseBusinessDto.class);
    }
}
